<!-- Office Call Show -->
<g:set var="title" value="Office Call for&nbsp;${officeCall.company}" />
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main" />
  <title>${title}</title>
</head>
<body>
  <div class="body">
    <h1>${title}</h1>
    <g:render template="/common/flashMessage" />
    <div class="dialog">
      <table>
        <tbody>
          <tr class="prop">
            <td valign="top" class="name">Company Contact:</td>
            <td valign="top" class="value"><g:link controller="user" action="show" id="${officeCall?.contact?.id}">${officeCall?.contact?.encodeAsHTML()}</g:link></td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">Representative:</td>
            <td valign="top" class="value"><g:link controller="user" action="show" id="${officeCall?.rep?.id}">${officeCall?.rep?.encodeAsHTML()}</g:link></td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">Call Type:</td>
            <td valign="top" class="value">${fieldValue(bean:officeCall, field:'type')}</td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">Date:</td>
            <td valign="top" class="value">${fieldValue(bean:officeCall, field:'date')}</td>
          </tr>
          <tr class="prop">
            <td valign="top" class="name">Notes:</td>
            <td valign="top" class="value">${fieldValue(bean:officeCall, field:'notes')}</td>
          </tr>
        </tbody>
      </table>
    </div>
    <tdcmw:linkButton action="edit" params="[id:officeCall.id]" label="Edit" />
    <tdcmw:linkButton action="delete" params="[id:officeCall.id]" label="Delete" />
  </div>
</body>
